<%--
  Created by IntelliJ IDEA.
  User: win
  Date: 2020/10/17
  Time: 19:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除学生信息</title>
</head>
<body style="padding: 100px">
<%
    String error = (String) request.getAttribute("error");
    String result = (String) request.getAttribute("result");
    String message = "";
    if (error!=null&&error.equalsIgnoreCase("nostudent")){
        message="无此学生，删除失败！";
    }else {
        if (result!=null&&result.equalsIgnoreCase("seccess")){
            message="删除成功！";
        }else if(result!=null&&result.equalsIgnoreCase("fail")){
            message="删除失败！";
        }
    }
%>
<h2><%= message %></h2>
<h2>删除学生信息</h2>
<a href="menu.jsp">
    <button>返回</button>
</a>
<form action="delstudent" method="post">
    请输入学号:
    <input type="text" name="studentID"><br>
    <input type="submit" value="删除">
</form>
</body>
</html>
